<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org"
	xmlns:dt="http://github.com/dandelion/datatables"
	xmlns:sec="http://www.thymeleaf.org">
<head>
<meta charset="utf-8" />
<title th:utext="#{title.newactor}"></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="author" content="Dhrubo" />

<!-- Le styles -->
<link rel="stylesheet" type="text/css" media="all"
	href="css/bootstrap.css" th:href="@{/resources/css/bootstrap.css}" />
<style type="text/css">
body {
	padding-top: 60px;
	padding-bottom: 40px;
}

.sidebar-nav {
	padding: 9px 0;
}

@media ( max-width : 980px) {
	/* Enable use of floated navbar text */
	.navbar-text.pull-right {
		float: none;
		padding-left: 5px;
		padding-right: 5px;
	}
}
</style>
<link rel="stylesheet" type="text/css" media="all"
	href="css/bootstrap-responsive.css"
	th:href="@{/resources/css/bootstrap-responsive.css}" />


</head>

<body>

	<div th:substituteby="fragments/userheader :: navbar"></div>

	<div class="container-fluid">
		<div class="row-fluid">

			<div class="span12">

				<form th:action="@{/saveactor}" class="form-horizontal"
					id="newactorform" th:object="${actor}" method="post">

					<fieldset>
						
						<legend th:utext="#{newactor}"></legend>
						
						<div id="message"></div>

						<div class="control-group" id="cgname">
							<label class="control-label" for="name" th:utext="#{actorname}"></label>
							<div class="controls">
								<input type="text" th:field="*{name}" class="input-xlarge"
									th:placeholder="#{actorname}" required="required" />
							</div>
						</div>
						
						<div class="control-group">
							<label class="control-label" for="name" th:utext="#{selectcomplexity}"></label>
							<div class="controls">

								<select name="complexity">
									<option label="Very High" value="Very High">Very High</option>
									<option label="High" value="High">High</option>
									<option label="Medium" value="Medium">Medium</option>
									<option label="Low" value="Low">Low</option>

							</select> 
							<input type="hidden" th:value="${project.id}" name="project" />
							</div>
						</div>
						
						<div class="control-group">

							<label class="control-label" for="name" th:utext="#{project}"></label>
							<div class="controls">
								<a th:href="@{/editproject(project=${project.id})}" th:text="${project.name}"></a> 

							</div>
						</div>
						
						<div class="control-group" th:if="${useCase != null}">

							<label class="control-label" for="name" th:utext="#{usecase}"></label>
							<div class="controls">
								<a th:href="@{/editusecase(usecase=${useCase.id}, active=2)}" th:text="${useCase.name}"></a> 

							</div>
						</div>

					
					<div class="form-actions">
						<button type="submit" class="btn btn-success" th:utext="#{save}"></button>
						<button type="reset" class="btn btn-info" th:utext="#{cancel}"></button>
					</div>
					
					</fieldset>
				</form>


			</div>
			<!--/span-->
		</div>
		<!--/row-->

		<hr />

	</div>
	<!--/.fluid-container-->

	<div th:substituteby="fragments/userheader :: footer"></div>

	<!-- Le javascript
    ================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script src="js/jquery.js" th:src="@{/resources/js/jquery.js}"></script>

	<script src="js/bootstrap-dropdown.js"
		th:src="@{/resources/js/bootstrap-dropdown.js}"></script>

	<script src="js/bootstrap-alert.js"
		th:src="@{/resources/js/bootstrap-alert.js}"></script>

	<script src="js/newactor.js" th:src="@{/resources/js/newactor.js}"></script>

</body>
</html>
